package com.sunny;

public class SubMain extends Main {

    private static class In{
        public In(){
            System.out.println("sub inner class");
        }
    }

    public SubMain(){

        new In();

        new In2();

        System.out.println("sub outer class");

    }

    public static void main(String[] args) {

        SubMain subMain = new SubMain();

        subMain.new In2();

    }

}
